package com.example.park_management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName invoice
 */
@TableName(value ="invoice")
public class Invoice_zzc implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String sellnum;

    /**
     * 
     */
    private String sellname;

    /**
     * 
     */
    private String invoicename;

    /**
     * 
     */
    private String invoicenum;

    /**
     * 
     */
    private String datetime;

    /**
     * 
     */
    private Double amount;

    /**
     * 
     */
    private String rate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getSellnum() {
        return sellnum;
    }

    /**
     * 
     */
    public void setSellnum(String sellnum) {
        this.sellnum = sellnum;
    }

    /**
     * 
     */
    public String getSellname() {
        return sellname;
    }

    /**
     * 
     */
    public void setSellname(String sellname) {
        this.sellname = sellname;
    }

    /**
     * 
     */
    public String getInvoicename() {
        return invoicename;
    }

    /**
     * 
     */
    public void setInvoicename(String invoicename) {
        this.invoicename = invoicename;
    }

    /**
     * 
     */
    public String getInvoicenum() {
        return invoicenum;
    }

    /**
     * 
     */
    public void setInvoicenum(String invoicenum) {
        this.invoicenum = invoicenum;
    }

    /**
     * 
     */
    public String getDatetime() {
        return datetime;
    }

    /**
     * 
     */
    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    /**
     * 
     */
    public Double getAmount() {
        return amount;
    }

    /**
     * 
     */
    public void setAmount(Double amount) {
        this.amount = amount;
    }

    /**
     * 
     */
    public String getRate() {
        return rate;
    }

    /**
     * 
     */
    public void setRate(String rate) {
        this.rate = rate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Invoice_zzc other = (Invoice_zzc) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSellnum() == null ? other.getSellnum() == null : this.getSellnum().equals(other.getSellnum()))
            && (this.getSellname() == null ? other.getSellname() == null : this.getSellname().equals(other.getSellname()))
            && (this.getInvoicename() == null ? other.getInvoicename() == null : this.getInvoicename().equals(other.getInvoicename()))
            && (this.getInvoicenum() == null ? other.getInvoicenum() == null : this.getInvoicenum().equals(other.getInvoicenum()))
            && (this.getDatetime() == null ? other.getDatetime() == null : this.getDatetime().equals(other.getDatetime()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getRate() == null ? other.getRate() == null : this.getRate().equals(other.getRate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSellnum() == null) ? 0 : getSellnum().hashCode());
        result = prime * result + ((getSellname() == null) ? 0 : getSellname().hashCode());
        result = prime * result + ((getInvoicename() == null) ? 0 : getInvoicename().hashCode());
        result = prime * result + ((getInvoicenum() == null) ? 0 : getInvoicenum().hashCode());
        result = prime * result + ((getDatetime() == null) ? 0 : getDatetime().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getRate() == null) ? 0 : getRate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sellnum=").append(sellnum);
        sb.append(", sellname=").append(sellname);
        sb.append(", invoicename=").append(invoicename);
        sb.append(", invoicenum=").append(invoicenum);
        sb.append(", datetime=").append(datetime);
        sb.append(", amount=").append(amount);
        sb.append(", rate=").append(rate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}